class Customer
   @@no_of_customers=0
   def initialize(id, name, addr)
      @cust_id=id
      @cust_name=name
      @cust_addr=addr
   end
   def sayHello()
      puts "hello world!"
   end
   def output()
      puts "my id is #{@cust_id} \n" +
            "my name is #{@cust_name} \n"+
            "my address is #{@cust_addr} \n"
   end
end
class AllButPattern
  def initialize(except)
    @except = except
  end

  def to_pattern(options)
    return self
  end

  def params(route)
    return {} unless @except === route
  end
end

def all_but(pattern)
#   puts AllButPattern.new(pattern)
  puts "all in web"
#   yield pattern
end

cust1=Customer.new("1", "John", "Wisdom Apartments, Ludhiya")
cust2=Customer.new("2", "Poul", "New Empire road, Khandala")
puts cust1 == cust2
puts cust1.sayHello
puts cust2.output

dall_but "he"


